<?
	$auth = Zend_Auth::getInstance(); 
    if ($auth->hasIdentity())
    	$u = 1;
    else
    	$u = 0;
    foreach ($this->viewParams['cList'] as $c) :
?>
<?if ($c['pid'] == 0) :?>
	<div class="comment-level-0" style="width:100%;float: right " id = "comment-box-<?= $c['id'];?>">
 <?else:?>
 	<!-- div class="comment-level-0" style="width:100%;float: right " >
 		<input style="float: left" type="button" value="↓" />
 		comment-box-<?= $c['pid'];?>
 		
 	</div-->
    <div class="comment-level-1" style="width:80% ;float: right " id = "comment-box-<?= $c['id'];?>">
 <?endif ?>	
    	#<?= $c['id'];?>
		<a style = "color:red">(<?echo  $c['number_of_children'];?>child)</a>
		<input style="float: right" type ="button" value="SetRating" id="rating-comment-button-<?=$c['id']?>-<?=$u?>"/>
    	<select style="float: right" id="rating-<?= $c['id'];?>">	
    		<?for($i=1;$i<=10;$i++) :?>
    			<option style="float: right"value="<?=$i?>" ><?=$i?></option>
    		<?endfor ?>
    	</select>
    	<!--<//?= $this->form->rating?>-->
    		<input style="float: right" type ="button" value="Delete" id="delete-comment-button-<?= $c['id'];?>"/>
    		<input style="float: right" type ="button" value="Spam" id="spam-comment-button-<?= $c['id'];?>"/>
    		<? if($c['reply_to']) echo "Reply to :".$c['reply_to'];?>
    	<br/><br/>
    	<?=t(13) ?>:<?= $c['title'];?><br/>
    	
    	<?=t(606) ?>:
    	<?=$c['comment_text'] ?><br/>
    
    	<?=t(608) ?>:
    	<?=$c['content_type'] ?> <?=t(609) ?> <?=$c['language'] ?>
    	
    	<?if($c['number_of_children']>0):?>
    		<input style="float: left" type="button" value="+" id="plus-<?=$c['id'];?>" name="0"/>
    	<?endif ?>
    	<input style="float: right" type="submit" value="Reply" id="reply-<?= $c['id'];?>-<?=$c['language'] ?>" name="reply"/>
	</div>	
<?endforeach ?>
<div style="width:100%;float: right" id = "paging">
<?= $this->paginationControl($this->viewParams['paginator'], 'Sliding', '/modules/event/commonTheme/commonLang/common/my_pagination_control.phtml'); ?>
</div>
